From: Eli Zaretskii Date: Mon, 13 Dec 2021 13:35:31 +0000 (+0200) Subject: * src/sqlite.c (Fsqlite_open, Fsqlite_load_extension): Use ENCODE_FILE. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~4033^2~9 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=57efc5d1bb60f6abb4766387b708e20532638135;p=emacs.git * src/sqlite.c (Fsqlite_open, Fsqlite_load_extension): Use ENCODE_FILE. --- diff --git a/src/sqlite.c b/src/sqlite.c index 4968ce3f690..248ad478d57 100644 --- a/src/sqlite.c +++ b/src/sqlite.c @@ -247,7 +247,7 @@ If FILE is nil, an in-memory database will be opened instead. */) if (!NILP (file)) { CHECK_STRING (file); - file = encode_string (Fexpand_file_name (file, Qnil)); + file = ENCODE_FILE (Fexpand_file_name (file, Qnil)); name = xstrdup (SSDATA (file)); } else @@ -596,7 +596,7 @@ system-dependent file-name extension. */) { check_sqlite (db, false); CHECK_STRING (module); - Lisp_Object module_encoded = encode_string (Fexpand_file_name (module, Qnil)); + Lisp_Object module_encoded = ENCODE_FILE (Fexpand_file_name (module, Qnil)); sqlite3 *sdb = XSQLITE (db)->db; int result = sqlite3_load_extension (sdb, SSDATA (module_encoded),